<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Language extends CI_Controller
{
    public function index($language = 'en')
    {
        $this->session->set_userdata('language', $language);
        $this->load->helper('url');
        redirect(site_url('login'));
    }
}